const Mock = require('mockjs')
const fs = require('fs')

const data = Mock.mock({
	"list|100": [{
		"image": "@image(150x120, @color)",
		"title": "@ctitle",
		"desc": "@cword(10, 20)",
		"price|10-1000": 1,
		"datetime": "@datetime",
	}]
})

fs.writeFileSync('list.json', JSON.stringify((data.list)))